11 #include <SDL Image\sdl_image.h>
14 #include <ZLIB\zlib.h>
16 #include "ResourceMaster.h"
22 FileIO(ResourceMaster
* rsc
);
29 void storeGameText(std::vector
<std::string
> item
);
32 void storeTextures(std::vector<SDL_Texture*> item);
33 void storeAnimations(std::vector<std::vector<SDL_Texture*>> item);
36 void saveUserData(int data
, int line
);
37 void saveScoreData(int gamemode
, int data
, int line
);
39 int loadUserData(int line
);
40 int loadScoreData(int gamemode
, int line
);
41 std::vector
<std::string
>loadLanguage(std::string path
);
45 /*void loadMenuItems();
46 void loadMenuAnimations();
47 void loadGameGraphics();
48 void loadGameAnimations();*/
51 SDL_Texture
* loadSpecificImage(std::string path
, int image
);
52 std::vector
<SDL_Texture
*> loadSpecificZip(std::string path
);
54 void loadTexturesZip();
55 void loadAnimationsZip();
56 void loadAnimationsZipUntil(int number
);
57 void loadAnimationsZipPast(int number
);
58 void loadAnimationsZipInterval(int start
, int end
);
62 char* getZipFileName(unz_file_info ufi
, unzFile uf
);
66 std::vector
<std::string
> split(std::string str
, char delimiter
);
67 std::vector
<int> splitInt(std::string str
, char delimiter
);
69 //SDL_Texture* extractSpecificTexture(std::string path, int image);
71 //SDL_Texture* loadTexture(std::string path);
72 SDL_Texture
* extractSpecificTexture(std::string path
, int image
);
73 std::vector
<SDL_Texture
*> extractTexturesFromZip(std::string path
);
74 std::vector
<Mix_Chunk
*> extractSFXZip(std::string path
);
75 std::vector
<Mix_Music
*> extractBGMZip(std::string path
);